package com.hrm.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Users  implements Serializable {
    private Integer id;

    private String loginname;

    private String password;

    private Integer status;//状态

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdate;//创建时间

    private String username;//姓名

    private String faceurl;//头像

    private String facepath;//头像路径

    private String phone;   //手机号

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Users() {

    }
    public Users(Integer id, String loginname, String password, Integer status, Date createdate, String username, String faceurl, String facepath, String phone) {
        this.id = id;
        this.loginname = loginname;
        this.password = password;
        this.status = status;
        this.createdate = createdate;
        this.username = username;
        this.faceurl = faceurl;
        this.facepath = facepath;
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname == null ? null : loginname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getFaceurl() {
        return faceurl;
    }

    public void setFaceurl(String faceurl) {
        this.faceurl = faceurl == null ? null : faceurl.trim();
    }

    public String getFacepath() {
        return facepath;
    }

    public void setFacepath(String facepath) {
        this.facepath = facepath == null ? null : facepath.trim();
    }

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", loginname='" + loginname + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", createdate=" + createdate +
                ", username='" + username + '\'' +
                ", faceurl='" + faceurl + '\'' +
                ", facepath='" + facepath + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}